package com.hhs.storage.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chx
 * @since 2024-06-27
 */
@Data
public class AttachmentDir implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 上传文件结构id
     */
        private String id;

      /**
     * 文件夹名
     */
      private String dirname;

      /**
     * 创建时间
     */
      @JSONField(format="yyyy-MM-dd HH:mm:ss")
      @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private LocalDateTime createTime;

      /**
     * 文件夹权限
     */
      private String permission;

    private String userId;

    private String pid;

    private Integer sortId;

    @TableField(exist = false)
    private String userName;
}
